package com.yingsheng.bi.hks.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SmsCodeGetBeforeLoginReq extends HksTransReq {

    @ApiModelProperty(value = "手机号码", required = true, notes = "仅登录前获取短信验证码需要上送手机号")
    @Pattern(regexp = "^[1][3,4,5,7,8][0-9]{9}$", message = "手机号码格式不正确")
    @NotBlank
    private String mobile;

    @ApiModelProperty(value = "验证码场景", required = true, notes = "需要短信认证的交易的服务路径")
    @NotBlank
    private String scene;


}
